package com.oe.lang.resp;

import java.io.Serializable;

public class LdmResponse<T> implements Serializable {

    private boolean success;

    private String code;

    private String msg;

    private T data;

    public LdmResponse() {

    }

    public LdmResponse(boolean success,String code, String msg, T t) {
        this.success = success;
        this.msg = msg;
        this.data = t;
        this.code = code;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T t) {
        this.data = t;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
